<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,  initial-scale=1.0, user-scalable=0, minimum-scale=1.0,  maximum-scale=1.0" />
    <meta content="yes" name="apple-mobile-web-app-capable" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
    <meta content="telephone=no" name="format-detection" />
    <title>{$week}周日志-（今天星期{$beweek}）</title>
    <link rel="stylesheet" href="__PUBLIC__/css/style.css" media="screen" type="text/css" />
    <link rel="stylesheet" href="__PUBLIC__/css/public.css" type="text/css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/font-awesome.min.css"/>
    <link rel='stylesheet' href='__PUBLIC__/css/bootstrap.css' type='text/css' media='all' />
    <script type='text/javascript' src='__PUBLIC__/js/jquery-2.1.1.min.js'></script>
    <script type='text/javascript' src='__PUBLIC__/js/bootstrap.js'></script>
</head>
<body>
    <div class="container">
            <include file='Common:header'/>
        <div class="cgx-txt">
        <h1><i class="fa fa-file-text-o"></i>{$week}周日志<br><span class="cgx-txt-date">{$opentime} 至 {$overtime}</span></h1>
            <div class="cgx-sbox">
                <ul class="cgx-txt-box clearfix">
                <foreach name='list' item='v' key='i'>
                    <li>
                        <div class="cgx-sbox-top">
                            <h2><?php echo $i+1; ?></h2>
                            <a href="{:U('/Home/Blog/look', array('id' => $v['id']))}"><p>{$v.title}<?php echo $color[rand(0,10)]?></p></a>
                        </div>
                        <div class="cgx-sbox-bottom">
                            <p>
                            <span><i class="fa fa-user"></i>{$v.author}</span>
                            <span class="blog-box-ico"><i class="fa fa-thumbs-up"></i>{$v.top}</span>
                            <span class="blog-box-ico"><i class="fa fa-eye"></i>{$v.visits}</span>
                            <span class="blog-box-ico"><i class="fa fa-clock-o"></i>{$v.time|date='Y-m-d', ###}</span>
                            </p>
                        </div>
                    </li>
                </foreach>

                </ul>
                <div class="msg-page">
                    <div class="page">
                        <a class="num" href="{:U('/Home/Index/index', array('p' => $last))}">下一周</a>
<input id="page_url" type="text" maxLength="3" value="0" style="ime-mode:disabled" onkeydown="if(event.keyCode==13)event.keyCode=9" onKeyPress="if ((event.keyCode<48 || event.keyCode>57)) event.returnValue=false"/>
                        <a href="javascript:geturl();">转到</a>
                        <a class="num" href="{:U('/Home/Index/index', array('p' => $next))}">上一周</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
<script type="">
    function geturl(){
        var text_obj = document.getElementById("page_url");
        var url = "/Home/Index/index/p/"+text_obj.value;
        window.location.href=url;
    }
</script>
    <script src="__PUBLIC__/js/index.js"></script>
</body>
</html>